it is not against code to increase wire size on a section of a branch circuit. It is against code to use a breaker larger than the smallest wire gauge on any part of the branch circuit. If the old wire is 14 gauge and the breaker or fuse is 15Amp everything is fine.