Tweak writeFlashByte to be a bit better
Improve writeFlashBuffer