Study of W boson production in pPb collisions at sqrt(s[NN]) = 5.02 TeV