It was pretty much explained in BbS. His heart was merged with Xehanorts, and it was purely his will and anger that entered the armor. So the heart was part of the heartless, but not the sentient part.