Technology stocks have been on a tear in 2017. Through the end of July, the iShares Technology ETF (IYW) is up almost 22%, well ahead of broader market benchmarks. If you are thinking of investing in tech stocks after a rally like that, here's what you need to know.