Lattice model of living polymerization. I. Basic thermodynamic properties