A couple of fixes to the libopencm3 compatible SD block driver, added writing support as well.