Make file write async.