SF is surrounded by water on 3 sides. Where do you propose all these new houses be built?
That's your problem right there, when you write "houses". Cities need apartment buildings, which allow more homes per same area than single family houses.
Up seems to be the obvious answer.