Question: how to buy a house in windhelm without joining the stormcloaks?
Answer: You can get the house in the rival city after completing the civil war storyline and helping one faction take over the other city. Thus it's possible to get the house by joining the imperials and defeating the stormcloaks.