Accepting that premise for a moment, why would the land around Bay Area offices scale any better for Americans than for H1Bs? If the opportunities simply go to Americans, you have exactly the same geometry problem. If the Americans who refill those roles do so at higher wages, the supply-and-demand imbalance gets even worse.
So then the h1b hires will go to jobs outside the bay area, reducing pressure on housing prices in the bay area.
Tech companies have N openings in the bay area. They will fill these openings. Whether they fill the openings with people moving from India or Mississippi has zero effect on the pressure on the bay area housing market.