Reordered file write