Matthew Laborteaux (credited as Matthew Labourteaux) played Albert Ingalls from 1978 to 1983. He was not written off or replaced; he simply aged out of the role as the series progressed toward its conclusion. Albert remained a prominent cast member until the show ended in 1983.
After Little House, Laborteaux continued acting in TV series and films, building a successful career.