Technological Innovation, Resource Allocation, and Growth