mtd: docg3: map erase and write functions