Taxes owed can never be deducted from a tax refund, federal or state. You have to pay the state taxes owed directly.