Non-volatile memory capable of correcting overwritten cell