Knowing how to file taxes in the case of debts or when repaying loans can help you avoid potential penalties.