What you wrote is for a thermal decomposition, which is not the case here. As others have stated, there will be an acid-base reactions between CO3(2-) and H+ from HCl. Of course BaCO3 is only slightly soluble, but the acid-base reaction drives the equilibrium to the product side. One of the products is H2CO3 (carbonic acid). This is not very stable in water, and will spontaneously decompose (not to be confused with thermal decomp) into CO2 gas and water (if in a open system, the release of CO2 gas from the system (ie solution) further drives the equilibrium to the right). Therefore, write the acid-base reaction in ionic form, cancel out common species and in the last step, just change H2CO3(aq) into water and CO2(g).