Update ioboard-spi.c

modified read/write function for microchip flash