modify random write for nand