The disk_write writes sector(s) to the disk.
DRESULT disk_write ( BYTE Drive, /* Physical drive number */ const BYTE* Buffer, /* Pointer to the write data (may be non aligned) */ DWORD SectorNumber, /* Sector number to write */ BYTE SectorCount /* Number of sectors to write */ );
This function is not required in read only configuration.