Revert "[inductor] Refactor and optimize allocation calls (#111117)"
This reverts commit 9ce0ae836d6801a39776897b9e891cd978b28aea.
Reverted https://github.com/pytorch/pytorch/pull/111117 on behalf of https://github.com/jeanschmidt due to Braking internal CI ([comment](https://github.com/pytorch/pytorch/pull/111117#issuecomment-1768489865))