According to the IRS, "You can claim a bad debt deduction only if the amount owed to you was previously included in gross income. This applies to amounts owed to you from all sources of taxable income, including sales, services, rents, and interest."
http://www.irs.gov/publications/p535/ch10.html