mg_disk: Add missing ready status check on mg_write()