The SAMI Galaxy Survey: spatially resolving the main sequence of star formation