SD card writing and reading a large amount of data using SPI