Allegri: 'Had Juve plans for six months'