mmc: fix the build error when MMC_WRITE is disabled