Measurement of the W-boson mass in pp collisions at root s=7 TeV with the ATLAS detector