China could find itself having to write off massive loans as countries that owe Beijing money under its massive infrastructure project struggle with mounting debts.