Onpage or offpage SEO both are equally important to a website, but offpage is long time process and results are not instant whereas the onpage SEO performs more quickly.
Id say both are equally important its just amatter of time, you need to invest a lot more time, effort (and money) in offpage seo