spi: fixes to write data to FPGA

Signed-off-by: Wang Xingchao <xingchao.wang@linux.intel.com>