Check with your city, county, and/or state to see if they have an indigent burial program.
Generally if someone has no money, insurance, assets, or family, they will be buried at the expense of the taxpayer.
I'm sorry to hear of your friend's death and of your worries over the financial end of things.
Other people asked questions on similar topics, check out the answers they received:
Other people asked questions on various topics, and are still waiting for answer. Would be great if you can take a sec and answer them