Solution 1: Make your dot think it is bigger than it actually is (3x3 instead of 1x1) then work out path based on edges of the 3x3 square. (May require collision detection code, also a bypass to allow it through 1 block size gaps.)
Solution 2: Calculate path as normal with an additional check so move your block 1 space away from the wall if there is space to do so.