If you legitimately owed the money at that time, which you apparently did based on what you write, it is legal for the creditor to tell anyone about the overdue debt. The law does not restrict people from disclosing truthful information to others, including information that someone is past due on a debt.