tools: nand writer: fix read verify bug