The 36-year-old, who is out of contract with the Argentine giants on Tuesday, has agreed to sign a six-month contract extension.
Despite committing his immediate future to Boca, the striker has revealed that he would like to return to West Ham at some point.
"If I had to go back to Europe I would go to West Ham for six months to be applauded," he told Radio La Red.
"Or spend six months at Corinthians. I won't rule anything out because I don't want to be a slave to my words."