FLASH write synchronization