Function SDC Write Sector
Performs a single sector write (attempts a retry on fault).
Zero on success, error code on failure.
The error codes returned by this function:
- 1: Card is not initialized
- 2: CMD24 failed
- 3: Timed out during waiting for completion (card should be reinitialized)
- 4: CRC error (SD card rejected the data due to bad CRC)
Note that this function can take a long time to complete (several frames).