As an owner occupied I don't believe you can write off the loss. However, it's best to ask a tax consultant. If you bought the property as an investment, never lived in it, and "flipped" it then you may be able to claim the loss.
If you have any other questions please contact me directly.
Have a great day!
Dayne K. Riddle