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