mtd: clean-up the default_mtd_writev function