Make sure the dirty byte is flushed before writing bytes