Former senator and UNSW Adjunct Professor Bob Carr is writing a tell-all book comprised of the diaries he kept while serving as foreign minister.