I'm not sure what you mean here. You can't write off a mortgage. You could write off interest, but not the value of the mortgage.
Real estate tends to appreciate in value, especially in cities. The company would have to get unlucky with their real estate to be able to write off a loss. Buildings don't usually depreciate.
They could allow their buildings to fall into a state of disrepair, hoping it would lower their value. But why would they? The can deduct the repairs. It's a legitimate expense.