removed redundant fsync/fflush