Q&A:
So its meen that I can charge my 3S3P battery pack with 24v max 6AH Charger?
A cell requires up to 2A x 4.2V = 8.4W.
Your charger is rated at 24 x 6 A = 288 Watt.
So using a boost or buck converter that will charge about 288/8.4 =~ 288/9 = 30+ cells. BUT you will need to use a converter to do this.
If you connect to battery with a linear requlator you have 6A max or up to 3 strings in parallel and not more than 5S so 5 x 3 = 15 cells max.
.
3S3P = 9 cells.
You say 21 cells.
Do you means 3S7P = 21 cells?
BUT
3S = 14.6V max, 9V min.
4S = 16.8V - 12V
5S = 21V - 15V
6S = 25.2V - 18V
7S = 29.4V - 21V
A 24 VDC charger will charge up to 5S without a boost converter.
If you want 24V nominal you need 6S or 7S or maybe 5S.
How do you intend to do speed control?
What IC or controller do you intend to use?
Just connecting 24 V to cells will not work - as I think and hope you know. .
You need a specialist LiIon charger IC. Digikey sells a number that would be suitable.