add flush code after bus_space_write()