sync writes