1. A method of writing data to a storage device, wherein the storage device includes a buffer memory and a flash memory, and the storage device and an information processing device are communicably connected, the method comprises the following steps: a first DMA descriptors including addresses used for the information processing device, for the flash memory and for the buffer memory, is received from the information processing device; when the first DMA descriptors indicates a DMA write operation, based on the address used for the information processing device and the address used for the buffer memory, first data is written from the information processing device to the buffer memory by DMA transmission; based on the address used for the flash memory and the address used for the buffer memory, the first data in the buffer memory is written to the flash memory.