write crashes