changed fsyncMode back to perWrite