fix bug causing all non async file writes to be dropped.