Fix SPIClass::transfer function to send and receive data
used txData and rxData to collect and transmit data to/from the SPI buffer