add write fail process for mtd flash device