Well, I am afraid the definition of a house (free standing one) in English means "别墅”in Chinese.
You have to understand that in China, we call any kind of property a 房子. They can be a cottage, a unit, an apartment, a villa, a duplex , a townhouse or a freestanding house.
In the cities, the mojority can only afford for a unit. So it is so likely that he/she means to buy a unit when talking about " 买房子" .
That is kind a culture shock, isn't it? :)