Applications typically need hard drive space to write temporary files during an operation. In this case, iPhoto created a temp file to burn your photos. This is normal and temporary. The quickest way to get the space back is to restart your Mac, but this is not necessary; use your Mac normally and when iPhoto determines that it doesn't need the temp file anymore, it will delete it.