add file sync on each write