I counsel a rest day or three, including a visit to the local Centro de Salud (Health Center), like first thing Monday morning. They will assess and advise based on a doctor's opinion.
As others have said, many a Camino has been saved by simply staying off the hurt foot for a day or two, and following medical advice, resuming their trek west. You invested so much time and treasure to get as far as you have.
Please do not pull the plug until you have explored all available options. Getting to a plane to go home is only one option...the 'nuclear option' if you will. Please do not employ it lightly.
Other credible options while healing include, skipping a segment using a regular bus. This moves you closer to Santiago, while allowing time for a foot to heal. It maintains your line-of-march on the Camino, and does not affect your getting a Compostela for the effort, so long as you DO walk the final 100 Km into Santiago.
Finally, if you do consider all this helpful advice, mine included (hopefully), and still feel that ending this Camino is the right thing to do, make sure you have sellos in your credencials from Calzada... You will be back. When you do return, simply continue walking from Calzada towards Santiago. Many pilgrims complete a pilgrimage in sections, doing a bit on each trip.
It is not uncommon to see a credencial will sello evidence of constant progression along a Camino route or two, but broken into more than one chronologically continuous stream. Three or four trips to finish is not at all uncommon for Europeans. For them, logistical issues are relatively simpler.
Carefully preserve your extant credencials... they can be reused when you rejoin the Camino...you will.
But for the rest of us who must travel from different continents to get to start a Camino, we are usually all in and committed for the duration due to cost and time issues. You did not indicate where you traveled from. So, I will presume from a land far distant...
Those of us in this tranche are very clever at finding ways to obtain medical advice, physiotherapy, pharmacist advice and the help of other pilgrims to keep us on the Camino, and pointed inthe right direction...
I sincerely hope this works out for you.