added os.fsync()