flush on write operation