adjusted page erase mechanism - works if individual pages are erased before programming (-s cmd line parameter)