update multiple sync using write