Revert "disable fsync()"

This reverts commit 0b3d5997dc4761e9aab76d5614aaec45ad74848b.