On the Thermal Instability in a Contracting Cloud and Formation of a Bound Cluster