Why bother putting the shelf on the wall, if it's easier to put a stand alone book shelf on the floor?
Usually, in the rental contract, it says you could do some change to your room when you're in, but request to change it back when you move out. So think about the work you need to do to put it on and the work you need to take it off and fix the wall and paint it. Do you think it worthy!