Yes, congress could forgive the debt via passing a law to do so. In addition to the government being the creditor, the constitution places a prohibition on states passing laws to modify private contracts, but there is no such prohibition on the federal government from doing so.
Thanks for your response.