From Spooks to The Hobbit the actor is a success on screen, but now he’s added author to his list of achievements