Flush data after writes

This uses basic write calls for half-duplex writes to the spidev, which
need to be flushed each time to avoid buffering.