Flash memory write operation controller