Adding fsync to batch writes.