Removed goto uses in SDCardUtil.cpp, moved write_sector into a lambda