remove nand driver duplicated code
add skip badblock write for mtd flash device