[CFI driver] For some Spansion flashes we have to write the
AMD_CMD_WRITE_TO_BUFFER command to the destination
address of the buffer write and not to the sector
beginning. Linux mtd does this as default, so I
assume this should work for other flashes aswell.
Reorder functions so that this change fits in nicely.